public class Teacher3 extends Person3{
    private double work_age;
    public Teacher3(String name,int age,genderEnum sex,double work_age){
        super(name,age,sex);
        this.work_age=work_age;
    }

    public double getWork_age() {
        return work_age;
    }

    public void setWork_age(double work_age) {
        this.work_age = work_age;
    }
    public void teach(){
        System.out.println(this.getName()+"认真教学");
    }
}
